package com.example.design_pattern.strategy.impl;


import com.example.design_pattern.strategy.IPayment;
import com.example.design_pattern.strategy.Order;
import com.example.design_pattern.strategy.PayResult;
import org.springframework.stereotype.Service;

/**
 * 支付宝
 * @author: _先森
 */
@Service("Alipay")
public class Alipay implements IPayment {
    @Override
    public PayResult pay(Order order) {
        return new PayResult("支付宝支付成功");
    }
}
